package team.tunan.service;

import team.tunan.entity.Game;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sqx
 * @since 2024-01-01
 */
public interface IGameService extends IService<Game> {
    int doAdd(Game game);

    /**
     * 查询比赛没结束的比赛
     * @return
     */
    List<Map<String, Object>> getGameInfo(Integer isAll);

    /**
     * 查询所有
     * @return
     */
    List<Map<String, Object>> getGameInfoTwo();

    Game getGame(Integer gid);

    Map<String, Object> updateGame(Game game);
}
